package com.ellricky.baselib.adapter.course

import android.app.Activity
import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.new.StudentOutList
import com.ellricky.baselib.widget.DetailItemView

class MakeUpAdapter(private val context: Activity) :
    BaseRecyclerAdapter<StudentOutList>(R.layout.base_adapter_make_up) {

    override fun onBindViewHolder(vh: SmartViewHolder, data: StudentOutList, position: Int) {

        //缺少一个头像
        vh.text(R.id.tvName, data.member_name)
        vh.itemView.findViewById<DetailItemView>(R.id.tvCtTime).apply {
            value = data.time
        }
        vh.itemView.findViewById<DetailItemView>(R.id.tvCwName).apply {
            value = data.class_name
        }
        vh.itemView.findViewById<DetailItemView>(R.id.tvCtName).apply {
            value = data.ware_name
        }
    }
}